import request from '@/utils/request'

// 查询疫苗列表
export function listTdmYiMiao(query) {
  return request({
    url: '/tdmdata/TdmYiMiao/list',
    method: 'get',
    params: query
  })
}

// 查询疫苗详细
export function getTdmYiMiao(id) {
  return request({
    url: '/tdmdata/TdmYiMiao/' + id,
    method: 'get'
  })
}

// 新增疫苗
export function addTdmYiMiao(data) {
  return request({
    url: '/tdmdata/TdmYiMiao',
    method: 'post',
    data: data
  })
}

// 修改疫苗
export function updateTdmYiMiao(data) {
  return request({
    url: '/tdmdata/TdmYiMiao',
    method: 'put',
    data: data
  })
}

// 删除疫苗
export function delTdmYiMiao(id) {
  return request({
    url: '/tdmdata/TdmYiMiao/' + id,
    method: 'delete'
  })
}
// 审核
export function to_examine(id,shenHe,pinZhong) {
  const data = {id, shenHe,pinZhong}
  return request({
    url: '/admin/examine',
    method: 'put',
    data:data
  })
}
